package com.cubeofnine.sugar.service.element;

import java.util.HashMap;
import java.util.Map;

public class RelationshipsResult {
	private Map<Object, IdMod> idMap = new HashMap<Object, IdMod>();
	private ErrorValue error = new ErrorValue();

	public RelationshipsResult() {

	}

	public RelationshipsResult(Map<Object, IdMod> idMap, ErrorValue error) {
		this.idMap = idMap;
		this.error = error;
	}

	public Map<Object, IdMod> getIdMap() {
		return idMap;
	}

	public void setIdMap(Map<Object, IdMod> idMap) {
		this.idMap = idMap;
	}

	public void addId(Object key, IdMod value) {
		idMap.put(key, value);
	}

	public ErrorValue getError() {
		return error;
	}

	public void setError(ErrorValue error) {
		this.error = error;
	}

	@Override
	public String toString() {
		return "RelationshipsResult [idMap=" + idMap + ", error=" + error + "]";
	}

}
